﻿using System.Collections.Generic;
using System.Windows;
using T68Control.Procdure;
using T68Control.ViewModel;

namespace T68Control.View
{
    /// <summary>
    /// ImagePopupWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ImagePopupWindow : Window
    {
        public ImagePopupWindow()
        {
            InitializeComponent();
            this.DataContext = new ImagePopupViewModel();
            Global.ImageControl = this.VmRenderControl;
        }

        public ImagePopupWindow(List<string> imagePaths)
        {
            InitializeComponent();
            this.DataContext = new ImagePopupViewModel(imagePaths);
            Global.ImageControl = this.VmRenderControl;
        }
    }
}